﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace MedicalCare.DbLayer.Adaptors
{
    public interface IDbAdaptor<T1,T2>
    {
        int Update(T1 message);
        void Remove(T1 message);
        T1 Read(string id);

        IList<T2> GetPagingRecords(string orderKey, string orderVal,
                                 int pageIndex, int pageSize, string whereStr);
        int GetRecordsTotal(string whereStr);
    }
}
